package com.wjk.cms.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @description: 商品种类
 * @author WUGN
 * @date 2021/1/6 11:55
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(
        name = "t_category"
)
public class Category extends BaseEntity {


    @Column(columnDefinition = "varchar(20)  COMMENT '名称'")
    private String name;

    @Column(columnDefinition = "varchar(20)  COMMENT '编号'")
    private String number;

    @Column(columnDefinition = "varchar(20)  COMMENT '规格'")
    private String spec;

    @Column(columnDefinition = "varchar(20)  COMMENT '规格码'")
    private String specCode;

    @Column(columnDefinition = "varchar(20)  COMMENT '价格'")
    private String price;

    @Column(columnDefinition = "varchar(20)  COMMENT '渠道结算价格'")
    private String channelPrice;

    @Column(columnDefinition = "varchar(20)  COMMENT '经销商结算价格'")
    private String sellerPrice;

    @Column(columnDefinition = "varchar(200)  COMMENT '图片'")
    private String img;

    @Column(columnDefinition = "bigint  COMMENT '创建者'")
    private Long createBy;

    @Column(columnDefinition = "varchar(20)  COMMENT '备用'")
    private String str1;

    @Column(columnDefinition = "int(11)  COMMENT '总数量' default 0")
    private Integer total=0;

    @Column(columnDefinition = "int(11) default 0  COMMENT '剩余数量' ")
    private Integer leftNum=0;

    @Column(columnDefinition = "int(11)  default 0  COMMENT '备用' ")
    private Integer num=0;

}
